package com.lxy.dao;

import com.lxy.bean.Permission;
import com.lxy.generic.GenericDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper extends GenericDao<Permission, Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

	List<Permission> getPermissionByRoleId(Integer id);

	List<Permission> getPermissionBypId(Integer pId);
}